On 1/20/2021 11:24 AM, Henning Hraban Ramm wrote:
In the following example, the image is calculated after the clipped width, but
the full image is shown:
\setupexternalfigures[location=default]
\showframe
\starttext
\strut
\hfill\clip[width=20mm]{\externalfigure[cow][height=30mm]}
\stoptext
In the following example, the image is calculated after the clipped width, but
the full image is shown:
\setupexternalfigures[location=default]
\showframe
\starttext
\strut
\hfill\clip[width=20mm]{\externalfigure[cow][height=30mm]}
\stoptext
This happens in current LMTX (2020-01-18
On 12/9/20 9:38 AM, Jan U. Hasecke wrote:
> Dear all,
>
> I use \clip to simplify working with images.
Hi Jan-Ulrich,
this command is really useful.
> In my real document the clipped image is shifted to the right as if
> indented by 1em or so.
I have read that Hans solved
Am 09.12.20 um 11:26 schrieb Hans Hagen:
> what if you put \removeunwantedspaces in front of the clip
The space vanishes when I put it right before \externalfigure.
Thanks a lot, Hans!
(Still, I would like to know how the space came up in the first place.)
Dear all,
I use \clip to simplify working with images.
I have a problem that I am unable to reproduce in a MWE.
\setupexternalfigure[location=default]
\showframe
\starttext
\externalfigure[cow.pdf][width=\textwidth]
\clip[height=50mm]
{\externalfigure[cow.pdf][width=\textwidth
On 12/9/2020 12:08 PM, Jan U. Hasecke wrote:
Am 09.12.20 um 11:26 schrieb Hans Hagen:
what if you put \removeunwantedspaces in front of the clip
The space vanishes when I put it right before \externalfigure.
Thanks a lot, Hans!
(Still, I would like to know how the space came up in the first
On 12/9/2020 9:38 AM, Jan U. Hasecke wrote:
Dear all,
I use \clip to simplify working with images.
I have a problem that I am unable to reproduce in a MWE.
\setupexternalfigure[location=default]
\showframe
\starttext
\externalfigure[cow.pdf][width=\textwidth]
\clip[height=50mm
Hi!
Assume that I want to fill in the text area with images, and I want to
clip and scale them according to these rules:
1) If the image is too wide (in sense of proportions), then scale it
so that the height fits the text area height, center it, and clip it
to the text area. (See the attached
OK, sorry for the noise. I think I have the solution:
\startexternalfigurecollection[k.jpg]
\useexternalfigure[k.jpg][k.jpg]
\stopexternalfigurecollection
\externalfigurecollectionminwidth{k.jpg}
\externalfigurecollectionmaxheight{k.jpg}
\clip[width=8cm,height=7cm]{%
\framed[width=8cm
/Context/essais/mkii/figures/resize-and-center.tex: ! Undefined
control sequence
\startexternalfigurecollection ...igurecollection
{#1}\settrue \c_grph_inclu...
l.13 \clip[width=8cm,height=7cm]
{%
3
])
context(\\hskip%ssp, skalning)
context.externalfigure({str},{height=hojd})
context.sprint(bar)
end
end
\stopluacode
\unexpanded\def\lundklippfyllbild#1#2#3{%
\startexternalfigurecollection[#1]%
\useexternalfigure[#1][#1]%
\stopexternalfigurecollection%
\clip[
width=#2,
height=#3,
hoffset
},{height=hojd})
context.sprint(bar)
end
end
\stopluacode
\unexpanded\def\lundklippfyllbild#1#2#3{%
\startexternalfigurecollection[#1]%
\useexternalfigure[#1][#1]%
\stopexternalfigurecollection%
\clip[
width=#2,
height=#3,
hoffset=0mm,
voffset=0mm,
]{%
\framed[width=#2,height=#3
end
\stopluacode
\unexpanded\def\lundklippfyllbild#1#2#3{%
\startexternalfigurecollection[#1]%
\useexternalfigure[#1][#1]%
\stopexternalfigurecollection%
\clip[
width=#2,
height=#3,
hoffset=0mm,
voffset=0mm,
]{%
\framed[width=#2,height=#3,align={middle,lohi},offset=overlay,frame=off]{%
\dimen0
, skalning)
context.externalfigure({str},{height=hojd})
context.sprint(bar)
end
end
\stopluacode
\unexpanded\def\lundklippfyllbild#1#2#3{%
\startexternalfigurecollection[#1]%
\useexternalfigure[#1][#1]%
\stopexternalfigurecollection%
\clip[
width=#2,
height=#3,
hoffset=0mm
)
context.externalfigure({str},{height=hojd})
context.sprint(bar)
end
end
\stopluacode
\unexpanded\def\lundklippfyllbild#1#2#3{%
\startexternalfigurecollection[#1]%
\useexternalfigure[#1][#1]%
\stopexternalfigurecollection%
\clip[
width=#2,
height=#3,
hoffset=0mm,
voffset=0mm
Hi,
I've used ConTeXt to chop up a big map svg on separate A4 papers like
this:
\setuplayout[width=190mm,backspace=10mm,height=297mm,topspace=10mm,
header=0mm]
\setupclipping[nx=3,ny=3]
\starttext
\dorecurse{3}{\framed{\clip[x=\recurselevel,y=1]{\externalfigure[map.svg][width=570mm
Am 21.09.2011 14:26, schrieb Otso Helenius:
Hi,
I've used ConTeXt to chop up a big map svg on separate A4 papers like this:
\setuplayout[width=190mm,backspace=10mm,height=297mm,topspace=10mm,
header=0mm]
\setupclipping[nx=3,ny=3]
\starttext
\dorecurse{3}{\framed{\clip[x=\recurselevel
On Thu, 2011-07-07 at 07:35 +0200, Wolfgang Schuster wrote:
There is a example in the metafun manual: http://pragma-ade.com/show-man-7.htm
Wolfgang
Wolfgang,
I appreciate the effort, but you've linked me to a 657 page manual which
is totally useless to me. I don't have time to learn another
Hey list,
I'd like the rounded corners of my figure's frame to clip off the
outside corners of the image so they aren't sticking out. This is what
I'm making do with:
\setupexternalfigures
[frame=on,
corner=25,
framecolor=colour_frame_border,
background=color,
backgroundcolor
On Wed, 6 Jul 2011, Kip Warner wrote:
Hey list,
I'd like the rounded corners of my figure's frame to clip off the
outside corners of the image so they aren't sticking out. This is what
I'm making do with:
\setupexternalfigures
[frame=on,
corner=25,
framecolor=colour_frame_border
On Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote:
You can use
\clip[mp=...]{\framed[...]{...}}
(I think that the metafun manual gives an example).
Aditya
Thanks Aditya, I'll look into it. I searched both the reference and
tutorial pdf and there is no description of \clip, but I
On Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote:
You can use
\clip[mp=...]{\framed[...]{...}}
(I think that the metafun manual gives an example).
Aditya
Aditya, correct me if wrong, but it looks like \clip performs
rectangular clipping only?
As I mentioned earlier, I'd like
Am 07.07.2011 um 07:18 schrieb Kip Warner:
On Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote:
You can use
\clip[mp=...]{\framed[...]{...}}
(I think that the metafun manual gives an example).
Aditya
Aditya, correct me if wrong, but it looks like \clip performs
rectangular
:= currentpicture; currentpicture := nullpicture;
fill unitsquare xysized (100mm,100mm) withcolor blue;
path mask; mask := unitsquare xysized (100mm,100mm) -- reverse unitsquare
xysized (100mm,10mm) shifted (0mm,45mm) -- cycle;
clip cur to mask;
draw cur;
\stopMPcode
But I can't cut pictures
On 22-5-2011 5:09, Otso Helenius wrote:
With this feature one could define for example a 2-page spread for a magazine
(with free shape graphics and columns)
in between two ordinarily defined pages and would not have to manually disrupt
the body text flow through the
document.
It can
Patrick Gundlach schrieb:
Is there a way to add the test pictures (cont-img.zip) to 'live context'?
They are already installed, but not in a local path. I have changed
'live context' so now the sample figures are in the search path.
Patrick
Thanks Patrick! This makes life easier :)
Hans Hagen schrieb:
Peter Rolf wrote:
Hi,
it seems, that clipping with a MetaPost path is broken (at least on my
machine). I couldn't test it on Contextgarden, as the standard example
pictures are not installed (or the !!path is not searched).
Anyhow, if someone can test this please.
), ConTeXt beta from
03.07.2007, pdftex 1.40.4 and mpost 1.0.
Thanks in advance, Peter
@Patrick:
Is there a way to add the test pictures (cont-img.zip) to 'live context'?
\setupcolors[state=start]
\setuppagenumber[state=stop]
\startMPclip{ClipTest}
clip currentpicture to
unitcircle scaled
Is there a way to add the test pictures (cont-img.zip) to 'live context'?
They are already installed, but not in a local path. I have changed
'live context' so now the sample figures are in the search path.
Patrick
Peter Rolf wrote:
Hi,
it seems, that clipping with a MetaPost path is broken (at least on my
machine). I couldn't test it on Contextgarden, as the standard example
pictures are not installed (or the !!path is not searched).
Anyhow, if someone can test this please.
has to do with the
Dear Hans,
it seems to me that \clip was extended by the useful params
left|right|top|bottomoffset. But they do not work:
\starttext
\clip
[leftoffset=1cm,rightoffset=1cm,topoffset=2cm,bottomoffset=.5cm]
{\externalfigure[cow]}
\stoptext
Thanks
Vit
31 matches
Mail list logo